<div id="content">
	<div class="row s_page_title" *ngIf="pageType ==='new'">
		<sa-big-breadcrumbs [items]="['环卫管理','系统管理','新增站点二维码']" icon="fa fa-cube" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<div class="row s_page_title" *ngIf="pageType ==='updata'">
		<sa-big-breadcrumbs [items]="['环卫管理','系统管理','编辑站点二维码']" icon="fa fa-cube" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<div class="s_page_wrap">
		<div class="page-header">
			<h1 class="page_detail_title">{{page_title}}站点</h1>
		</div>
		<div class="row" style="margin-top:5px;">
		<div class="col-xs-12">
			<form  id="lySiteForm"  class="form-horizontal" (ngSubmit)="onSubmit()" novalidate="novalidate" [saBootstrapValidator]="validatorOptions">

				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">站点名称<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control"  [(ngModel)]='page.stationName' name="stationName"  type="text" placeholder="站点名称" />
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">区域名称<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="areaName" [(ngModel)]='page.areaName' type="text" placeholder="区域名称" />
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">地址</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="stationAddress" [(ngModel)]='page.stationAddress' type="text" placeholder="地址" />
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">经度</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="longitude" [(ngModel)]='page.longitude' type="text" placeholder="坐标经度" />
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">纬度</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="lantitude" [(ngModel)]='page.lantitude' type="text" placeholder="坐标纬度" />
						</div>
					</div>
				</div>

				<div class="center">
					<button type="submit" class="btn btn-primary" *ngIf='page_title === "新增"' >添加</button>
					<button type="submit" class="btn btn-primary" *ngIf='page_title === "编辑"' >保存</button>
					<button type="button" (click)='goBack()' class="btn default">返回</button>
				</div>
			</form>
			<div class="hr hr-dotted"></div>
		</div>
	</div>
	</div>
</div>